<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="base.jsp"></jsp:include>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="javascript:;" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>V</b>RV</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>数据管理平台</b>VRV</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only"></span>
      </a>
      
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              <span class="hidden-xs">Alexander Pierce</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                <p>管理员
                  <small></small>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="#" class="btn btn-default btn-flat">个人资料</a>
                </div>
                <div class="pull-right">
                  <a href="#" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>管理员${menuList }</p>
          <a href="javascript:;"><i class="fa fa-circle text-success"></i>在线</a>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">导航栏</li>
        <li>
          <a href="main/mainConfriguation" target="main">
            <i class="fa fa-table"></i> <span>集群配置</span>
          </a>
        </li>
        <li>
          <a href="syslog/list" target="main">
            <i class="fa fa-table"></i> <span>日志查看</span>
          </a>
        </li>
        <li>
          <a href="javascript:;" target="main">
            <i class="fa fa-pie-chart"></i> <span>报表生成</span>
          </a>
        </li>
        <li>
          <a href="manager/list" target="main">
            <i class="fa fa-th"></i> <span>用户管理</span>
          </a>
        </li>
        <li>
          <a href="${url }cluster/index" target="main">
            <i class="fa fa-dashboard"></i> <span>服务管理</span>
          </a>
        </li>
        <li>
          <a href="${url }local/index" target="main">
            <i class="fa fa-laptop"></i> <span>主机管理</span>
          </a>
        </li>
        <li class="treeview">
          <a href="javascript:;">
            <i class="fa fa-dashboard"></i>
            <span>采集配置</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="${url }collect/index" target="main"><i class="fa fa-circle-o"></i>首页</a></li>
            <li><a href="${url }collect/setting" target="main"><i class="fa fa-circle-o"></i>采集配置</a></li>
          </ul>
        </li>
        <li>
          <a href="${url }serverLog/list" target="main">
            <i class="fa fa-table"></i> <span>日志提取</span>
          </a>
        </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <iframe src="" name="main" id="iframepage" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
  </div>

  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<script>
$(function () {
	$("#iframepage").load(function(){
		var mainheight = $(this).contents().find("body").height();
		$(this).height(mainheight+50);
		//$(this).height('100%');
		$(this).width('99%');
	});
	
	$.post("",{},function(){
		
	});
});
</script>
</body>
</html>